home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / RE Part Scripting Question.1 < prev    next >
Encoding:
Internet Message Format  |  1996-08-16  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     RE: Part Scripting Question
  2. Sent:        8/2/96 1:02 AM
  3. Received:    8/16/96 8:35 AM
  4. From:        Chris Hunt, chris_hunt@yes.optus.com.au
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Serge wrote:
  9.  
  10. "If I understand well, you are adding a new property to the cPart class
  11. defined by OpenDoc."
  12.  
  13. Correct.  The property is named pContents.
  14.  
  15. "This seems to be done by defining a new kAEOpenDocSuite suite that contains only the new property. Is that right?"
  16.  
  17. No.  Have a look at the PartMaker generation for DR5's scriptable part and its aete resource file.  The resource file defines a new suite for the part editor named after the part editor.  It looks something like this (CLA_SUIR is the name of my part editor):
  18.  
  19. *****
  20.         /*
  21.          *-------------------------------------------
  22.          * Custom suite information
  23.          *-------------------------------------------
  24.          */
  25.         "CLA_SUIR Suite",
  26.         "Suite pertaining to the part editor.",
  27.         kCLA_SUIREditorOSType,
  28.         1,
  29.         1,
  30.  
  31.         /*
  32.          *-------------------------------------------
  33.          * Events
  34.          *-------------------------------------------
  35.          */
  36.         {
  37.         },
  38.  
  39.         /*
  40.          *-------------------------------------------
  41.          * Classes
  42.          *-------------------------------------------
  43.          */
  44. *****
  45.  
  46. BTW: I didn't know of the kAEOpenDocSuite constant.  Where is this constant and corresponding suite documented?
  47.  
  48. Also, I seem to be having difficulty getting messages back through the OpenDoc list.  Do you know if my message requesting information on how to develop bare-bones parts got through?  It wanted to know about how to build CW9 OpenDoc part editor projects from the ground up instead of using PartMaker...
  49.  
  50. Regards,
  51.  
  52. Christopher Hunt    ?%^)
  53.  
  54. Class Action Pty. Ltd
  55. Wollongong, NSW
  56. AUSTRALIA
  57.  
  58. e-mail: chris_hunt@yes.optus.com.au
  59.